/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package view.main;
import view.actor.*;
import javax.swing.*;
import model.game.GameEngine;

/**
 *
 * @author Satrio Dewantono
 */
public class View extends JFrame {
  DrawBoard db;
  GameEngine game_;
  SpeechBubbleManager sbm_;
  Actors actors;

  public View(BackGround bg, PlayerActor ps,GameEngine eng,SpeechBubbleManager sbm,Actors act){
    super("game");

    game_ = eng;
    sbm_ = sbm;
    actors = act;
    add(db = new DrawBoard(bg,ps,game_,sbm_,actors));
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    setSize(400, 300);
    setLocationRelativeTo(null);
    setVisible(true);
  }
  
  DrawBoard getDrawBoard(){
    return db;
  }
}
